<%@page contentType="text/html; charset=utf-8"%>
<%@ include file="../inc/TagLibs.jsp"%>
<c:set var="pageTitle" value="首页  | 网络下单系统 | ${licenseInfo.enterpriseName}" />
<%@ include file="../inc/OnlineTitle.jsp"%>
<head>
<script src="/js/popup_ext.js"></script>
<script src="/js/jquery.js"></script>
<script language="javascript">
	function setIframeDisplay(flag){
		//nnd,iframe里的东西在平板的触摸屏里模式窗的div挡不住,链接还是有效
		//只好在弹出模式框时隐藏一下iframe
		document.getElementById("MainFrame").style.display=flag;
	}
	function doLogout(){
		window.top.location="/online/Logout.ihtm";
	}
	window.onbeforeunload = function(){
		var n = window.event.screenX - window.screenLeft;   
		var b = n > document.documentElement.scrollWidth-20;   
		if(b && window.event.clientY < 0 || window.event.altKey){
			var xmlHttp=createXMLHttpRequest();
			xmlHttp.open("GET", "/online/Logout.ihtm",true);
			xmlHttp.send(null);
		}
	}
</script>
<link rel="stylesheet" type="text/css" href="/css/base.css" />
<link rel="stylesheet" type="text/css" href="/css/defualt.css" />
<link rel="stylesheet" type="text/css" href="/css/GlobalMenu.css" />
<script type="text/javascript" src="/js/Common.js"></script>
<script type="text/javascript" src="/js/GlobalMenu.js"></script>

</head>
<body>
	<div class="Wrap">
		<div class="Container">
		
    		<div class="Heading">
    			<div class="heading_logo_online">
    				<div class="heading_right">
        				<div class="edit">
	            			<ul class="edit-link">
	            				<li>欢迎：${clieUser.clie.estName}（余额：<c:if test="${remaCost>=0.00}">${remaCost}</c:if><c:if test="${remaCost<0.00}"><span style="color:red;font-weight:bold;">${remaCost}</span></c:if>）</li>
	                			<li class="ico-home"><a href="/online/BusiBillNew.ihtm" target="MainFrame">桌面</a></li>
	                			<li class="ico-code"><a href="/online/AccoEdit.ihtm" target="MainFrame">修改密码</a></li>
	                			<li class="ico-out"><a href="javascript:doLogout();" >退出</a></li>
	            			</ul>
        				</div>
        				<ul id="MainMenu" class="GlobalMenu ClearFix"></ul>
    				</div>
    			</div>
			</div>
			
			<div class="Content">
    			<iframe id="MainFrame" name="MainFrame" class="MainFrame" frameborder="0" src="/online/BusiBillNew.ihtm"></iframe>
    		</div>
    		
		</div>
	</div>
</body>
</html>

<script type="text/javascript">
// type:
//   0 - Normal    2 - Else
//   1 - Primary   3 - Weak
var GM_Data =[

{code:'01', name:'网络下单', title:'', url:'' },
{code:'02', name:'账单查询', title:'', url:'' },
{code:'03', name:'用户信息', title:'', url:'' },

{code:'0101', name:'', title:'' },
    {code:'010111',type:1, name:'广告下单', title:'', url:'/online/BusiBillNew.ihtm' },
    {code:'010112',type:0, name:'订单查询', title:'', url:'/online/BusiBillList.ihtm' },

{code:'0201', name:'', title:'' },
    {code:'020111',type:0, name:'账单统计', title:'', url:'/online/BusiCoun.ihtm' },
    {code:'020112',type:0, name:'付款记录', title:'', url:'/online/PayList.ihtm' },
	{code:'020113',type:0, name:'对账单', title:'', url:'/online/BusiAccoForm.ihtm' },
	
{code:'0301', name:'', title:'' },
    {code:'030111',type:0, name:'用户资料修改', title:'', url:'/online/ClieEdit.ihtm' },
    {code:'030112',type:0, name:'修改密码', title:'', url:'/online/AccoEdit.ihtm' },
    
null];
</script>

<script language="javascript">
function OnResize(){
    var cw = document.documentElement.clientWidth;
    var ch = document.documentElement.clientHeight;
    MainFrame.style.width  = (cw)+'px';
    MainFrame.style.height = (ch-68)+'px';
};

var MainFrame = $('MainFrame');
var MainMenu =  $('MainMenu');

(function(){
    window.onresize = OnResize;
    OnResize();
    
    var gmm = new GlobalMenuMgr( MainMenu, GM_Data, MainFrame );
})();
</script>
